home *** CD-ROM | disk | FTP | other *** search
- using System;
- using System.Drawing;
- using System.Windows.Forms;
- using AxShockwaveFlashObjects;
-
- namespace FlashTest
- {
- public class FlashForm : System.Windows.Forms.Form
- {
-
- private AxShockwaveFlash flashControl;
-
- public FlashForm ()
- {
- this.Text = "FlashTest";
- this.Size = new Size(500,400);
- this.Load += new EventHandler(this.myWindow_Load);
-
- // crea il controllo flash e lo aggiung al form
- this.flashControl = new AxShockwaveFlash();
- this.flashControl.Location = new Point(10,10);
- this.flashControl.Size = new Size(300,300);
- this.Controls.Add(this.flashControl);
-
- }
-
- public void myWindow_Load(object sender,EventArgs e)
- {
- // Carica il filmato flash
- // Per un corretto funzionamento caricare il filmato
- // sempre sull'evento Load del form o successivamente
- // e mai nel costruttore
- this.flashControl.Movie = System.IO.Path.Combine(Application.StartupPath,"Login.swf");
- }
-
- public static void Main()
- {
- Application.Run(new FlashForm());
- }
- }
- }